using MediatR;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.Material.MaterialGroup
{
    /// <summary>
    /// 物料群组新增命令类
    /// </summary>
    public class CreateMaterialGroupCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 编码
        /// </summary>
        public string MaterialNo { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 群组类型ID
        /// </summary>
        public int GroupTypeId { get; set; }

        /// <summary>
        /// 群组ID
        /// </summary>
        public int? GroupId { get; set; }

        /// <summary>
        /// 群组名称
        /// </summary>
        public string GroupName { get; set; }

        /// <summary>
        /// 默认工艺路线ID
        /// </summary>
        public int? DefaultCraftId { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string MaterialDesc { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
